package com.sixkey.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2023-10-05
 */

/**
 * 预约会议实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_reservation")
public class Reservation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "会议主题不能为空")
    private String theme;

    @TableField(exist = false)
    private String authorPhone;

    @NotBlank(message = "会议室名称不能为空")
    private String roomName;

    @TableField(exist = false)
    private List<String> participants;

    private String remark;

    /**
     * 非数据库字段
     */
    @TableField(exist = false)
    private List<String> beginEndTime;

    private String beginTime;

    private String status;

    @TableLogic
    private Integer isDelete;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}
